package com.furongji.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

public enum OrderStatusEnum {

    UNPAID("UNPAID", "未支付"),
    PAID("PAID", "已支付"),
    CANCELLED("CANCELLED", "超时取消");

    @Getter
    @EnumValue
    private final String status;
    private final String description;

    OrderStatusEnum(String status, String description) {
        this.status = status;
        this.description = description;
    }

    @JsonValue
    public String getDescription() {
        return description;
    }
}

